{% extends "mall_base.html" %}
{% block title %}
    <title>登录界面</title>
{% endblock %}


  {% block content %}
<!-- 登录界面 -->
<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <form action="/login/" method="post" class="form-signin">
                {% csrf_token %}
                <SCRIPT>
                    var msg = "{{ msg }}";
                    if (msg) {
                        alert(msg);
                    }
                </SCRIPT>
                <h2 class="form-signin-heading">请登录</h2>
                <label for="inputEmail" class="sr-only">用户名</label>
                <input type="text" name="username" id="inputEmail" class="form-control" placeholder="用户名" required autofocus><br>
                <label for="inputPassword" class="sr-only">密码</label>
                <input type="password" name="password" id="inputPassword" class="form-control" placeholder="密码" required>
                <div class="checkbox">
                    <label>
                        <input type="checkbox" value="remember-me"> 记住我
                    </label>
                    <label>
                        <a href="/register/">注册</a>
                    </label>
                </div>
                <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button><span>{{ msg }}</span>
            </form>
        </div>
    </div>
</div>
<!-- 登录界面结束 -->

{% endblock %}


